import { request} from '@/utils/request.util';
import type {Root,DeptListRoot} from '@/types/root'
import type { Pagination } from '@/types/pagination';
import type { Response, Res } from '@/types/common';

import type {ProjectFeeForm,ProjectFeeInfo,ProjectFeeResponse} from '@/types/projectFee/index'


//查看项目列表
export const getProjectFeeList =  (body:ProjectFeeForm) => request.get<ProjectFeeResponse> ("/project/fee/getProjectFeeList", {
  params: body
});   
 

// //新增
export const addProjectFee = (body: ProjectFeeInfo) => request.post<Response<Res>>("/project/fee/addProjectFee",body);

// //编辑
export const updateProjectFee = (body: ProjectFeeInfo) => request.post<Response<Res>>("/project/fee/updateProjectFee",body);

// //删除
export const deleteProjectFee = (projectId:string) => request.post<Response<Res>>("/project/fee/deleteProjectFee",{projectId});


//启用
export const enableProjectFee = (projectId:string) => request.post<Response<Res>>("/project/fee/enableProjectFee",{projectId});

//停用
export const disableProjectFee = (projectId:string) => request.post<Response<Res>>("/project/fee/disableProjectFee",{projectId});
